package com.example.flowabledemo.demos.flow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Set;

/**
 * @Description: 关联表单表
 * @Author: LuanKay
 * @Date: 2025/2/13
 */
@Data
@TableName("process_form")
public class ProcessForm implements Serializable {

    private static final long serialVersionUID = 1L;


    /*ALTER TABLE process_form MODIFY COLUMN id BIGINT NOT NULL AUTO_INCREMENT;*/
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 是否公共表单 1是0否
     */
    @TableField(value = "is_common")
    private Integer isCommon;

    /**
     * 1是0否
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 绑定流程部署id
     */
    @TableField(value = "deploy_id")
    private String deployId;

    /**
     * 表单详情
     */
    @TableField(exist = false)
    private Set<ProcessFormDetail> sets;


}
